<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%request.setCharacterEncoding("GBK");%>
<jsp:useBean id="ps" class="com.chapter6.javabean.Person" scope="page"/>
<!--在这里因为前面form中name,sex,age和Javabean中一样，所以进行了自动匹配,property="*",
表示匹配的属性是所有的-->
<jsp:setProperty name="ps" property="*"></jsp:setProperty>
姓名:<jsp:getProperty name="name" property="ps"/><BR>
性别:<jsp:getProperty name="sex" property="ps"/><BR>
年龄:<jsp:getProperty name="age" property="ps"/><BR>
</body>
</html>
